import groovy.text.Template
import groovy.text.SimpleTemplateEngine

class TemplateStudy {
	static void main(args){
		def text ='\"${greeting} ${username}\"'
		def binding = ["greeting":"Hello", "username":"kongxx"]
		def engine = new SimpleTemplateEngine()
		def template = engine.createTemplate(text).make(binding)
		println template.toString()
	}
}
